package fr.fort.lycee.spring.entities;

// Generated 20 mars 2015 07:40:35 by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Inscription generated by hbm2java
 */
@Entity
@Table(name = "inscription", catalog = "lycee")
public class Inscription implements java.io.Serializable {

	private Integer idInscription;
	private Eleve eleve;
	private Date dateInscription;
	private float montantVerser;
	private int anneeScolaire;
	private String nomValideur;
	private Integer actif;

	public Inscription() {
	}

	public Inscription(Eleve eleve, Date dateInscription, float montantVerser,
			int anneeScolaire) {
		this.eleve = eleve;
		this.dateInscription = dateInscription;
		this.montantVerser = montantVerser;
		this.anneeScolaire = anneeScolaire;
	}

	public Inscription(Eleve eleve, Date dateInscription, float montantVerser,
			int anneeScolaire, String nomValideur, Integer actif) {
		this.eleve = eleve;
		this.dateInscription = dateInscription;
		this.montantVerser = montantVerser;
		this.anneeScolaire = anneeScolaire;
		this.nomValideur = nomValideur;
		this.actif = actif;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "idInscription", unique = true, nullable = false)
	public Integer getIdInscription() {
		return this.idInscription;
	}

	public void setIdInscription(Integer idInscription) {
		this.idInscription = idInscription;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "idCompte", nullable = false)
	public Eleve getEleve() {
		return this.eleve;
	}

	public void setEleve(Eleve eleve) {
		this.eleve = eleve;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "dateInscription", nullable = false, length = 19)
	public Date getDateInscription() {
		return this.dateInscription;
	}

	public void setDateInscription(Date dateInscription) {
		this.dateInscription = dateInscription;
	}

	@Column(name = "montantVerser", nullable = false, precision = 12, scale = 0)
	public float getMontantVerser() {
		return this.montantVerser;
	}

	public void setMontantVerser(float montantVerser) {
		this.montantVerser = montantVerser;
	}

	@Column(name = "anneeScolaire", nullable = false)
	public int getAnneeScolaire() {
		return this.anneeScolaire;
	}

	public void setAnneeScolaire(int anneeScolaire) {
		this.anneeScolaire = anneeScolaire;
	}

	@Column(name = "nomValideur", length = 254)
	public String getNomValideur() {
		return this.nomValideur;
	}

	public void setNomValideur(String nomValideur) {
		this.nomValideur = nomValideur;
	}

	@Column(name = "actif")
	public Integer getActif() {
		return this.actif;
	}

	public void setActif(Integer actif) {
		this.actif = actif;
	}

}
